JC=javac -Xlint -g

all: ChatClient.class ChatServer.class ChatProtocol.class

ChatClient.class: ChatClient.java ChatProtocol.java
	$(JC) ChatClient.java

ChatServer.class: ChatServer.java ChatProtocol.java
	$(JC) ChatServer.java

ChatProtocol.class: ChatProtocol.java
	$(JC) ChatProtocol.java

TAGS: ChatClient.java ChatServer.java ChatProtocol.java
	ctags-exuberant -e ChatClient.java ChatServer.java ChatProtocol.java
clean:
	rm -f *.class
